export default {
  addCounter(state, payload) {
    payload.count++
  },
  addToCart(state, payload) {
    state.cartList.push(payload)
  },
  // 取不到数据，可能需要遍历数组才能取到
  // changeClick(state) {
  //   state.cartList.checked = !state.cartList.checked
  // }
}
